package com.chinda.common.enums;

import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;

/**
 * 定时任务状态
 * @author Wang Chinda
 * @date 2021/7/9
 * @see
 * @since 1.0
 */
@AllArgsConstructor
public enum ScheduleStatusEnum implements IEnum<Integer> {

    NORMAL(0, "正常"),
    PAUSE(1, "暂停");

    private final int value;
    private final String desc;

    @Override
    public Integer getValue() {
        return this.value;
    }

    @JsonValue
    public String getDesc() {
        return desc;
    }
}
